package org.leviatan.definator.gui.swingmodels;

import javax.swing.tree.DefaultMutableTreeNode;

import org.leviatan.definator.core.model.Table;

public class TableTreeNodeModel extends DefaultMutableTreeNode {

	private static final long serialVersionUID = -1221463457969306407L;
	
	private String id;
	
	private String name;

	

	
	public TableTreeNodeModel(Table tblModel) {
		super();
		this.id = tblModel.getId();
		this.name = tblModel.getName();
		this.setUserObject(this);
	}

	public String getId() {
		return this.id;
	}

	public String getName() {
		return this.name;
	}

	public void setId(String aId) {
		this.id = aId;
	}

	public void setName(String aName) {
		this.name = aName;
		
	}
	
	public String toString() {
		return "[tbl] " + this.name;
		
	}

	
	
	
	
	

}
